* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

.subtitle {
    color: #666;
    margin-top: 10px;
}

.lottery-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
    margin: 15px 0 30px 0;
}

.number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.number:hover {
    background-color: #f0f0f0;
}

.number.selected {
    background-color: #e74c3c;
    color: white;
    border-color: #c0392b;
}

.control-panel {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#randomBtn {
    background-color: #3498db;
    color: white;
}

#clearBtn {
    background-color: #95a5a6;
    color: white;
}

#drawBtn {
    background-color: #e74c3c;
    color: white;
}

button:hover {
    opacity: 0.9;
}

.result-panel {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.draw-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.front-draw, .back-draw {
    display: flex;
    gap: 10px;
}

.draw-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
}

.divider {
    font-size: 20px;
    color: #666;
}

.prize-result {
    font-size: 18px;
    color: #e74c3c;
    margin-top: 10px;
}

.history-panel {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.history-list {
    margin-top: 15px;
}

.history-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-numbers {
    display: flex;
    gap: 10px;
}

.history-prize {
    color: #e74c3c;
} 